| www.LinuxHowtos.org howtos, tips&tricks and tutorials for linux | |
from small one page howto to huge articles all in one place
poll results Last additions: using iotop to find disk usage hogs using iotop to find disk usage hogs words:887 views:207505 userrating:May 25th. 2007: Words why adblockers are bad 486 Views257868 Workaround and fixes for the current Core Dump Handling vulnerability affected kernels Workaround and fixes for the current Core Dump Handling vulnerability affected kernels words:161 views:148888 userrating:April, 26th. 2006: Words New subdomain: toolsntoys.linuxhowtos.org 38 Views106686 You are here: System->Tips and Tricks Using SSH for remote commandsThis tip shows a less common use of SSH. Most people use SSH to login to servers or boxes remotely. However, you can also use SSH to issue commands on remote servers without opening a full login shell.Note: To use SSH without having to enter a password all the time, use the passwordless login tutorial in the "Security" section. To issue commands through SSH, simply type the command after the normal SSH login information (e.g. ssh user@host command). The following example shows you how to view log files on a remote web server. Code Listing 1: Viewing an Apache2 access_log % ssh david@www.example.com tail /var/log/apache2/access_log Alternatively, you could change passwords over SSH (although using public key authentication with SSH is recommended over passwords). Code Listing 2: Remotely changing a password % ssh david@example.com passwd This should get you started with remote command execution. See the SSH man pages for more options. From http://www.gentoo.org/news/en/gwn/20030908-newsletter.xmlback Support us on Content Nation |
|
rdf newsfeed |
rss newsfeed |
Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 50.6 ms
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 50.6 ms